<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class MapUtils</title>
			<link rel="stylesheet" href="../../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class MapUtils</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">A collection of utility methods for working with maps (associative arrays).</p>
		<p class="notes">
			Located in <a class="field" href="_common---src---Google---Api---Ads---Common---Util---MapUtils.php.html">/common/src/Google/Api/Ads/Common/Util/MapUtils.php</a> (line <span class="field">35</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>




	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
												<div class="method-definition">
					static 						<span class="method-result">array</span>
										<a href="#GetMap" title="details" class="method-name">GetMap</a>
											(<span class="var-type">array</span>&nbsp;<span class="var-name">$mapEntries</span>)
									</div>
																<div class="method-definition">
					static 						<span class="method-result">array</span>
										<a href="#GetMapEntries" title="details" class="method-name">GetMapEntries</a>
											(<span class="var-type">array</span>&nbsp;<span class="var-name">$map</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$mapEntryClassName</span> = <span class="var-default">NULL</span>])
									</div>
																<div class="method-definition">
					static 						<span class="method-result">bool</span>
										<a href="#IsMap" title="details" class="method-name">IsMap</a>
											(<span class="var-type">array</span>&nbsp;<span class="var-name">$array</span>)
									</div>
																<div class="method-definition">
					static 						<span class="method-result">array</span>
										<a href="#MapToMethodParameters" title="details" class="method-name">MapToMethodParameters</a>
											(<span class="var-type">array</span>&nbsp;<span class="var-name">$map</span>, <span class="var-type">ReflectionMethod</span>&nbsp;<span class="var-name">$method</span>)
									</div>
								
																																				</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="methodGetMap" id="GetMap"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">static method GetMap</span> (line <span class="line-number">48</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Gets a map (associative array) from an array of map entries. A map entry  is any object that has a key and value field.</p>
	<ul class="tags">
				<li><span class="field">return:</span> a map built from the keys and values of the map entries</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">array</span>
		<span class="method-name">
			GetMap
		</span>
					(<span class="var-type">array</span>&nbsp;<span class="var-name">$mapEntries</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$mapEntries</span><span class="var-description">: an array of map entries</span>			</li>
				</ul>
		
			
	</div>
<a name="methodGetMapEntries" id="GetMapEntries"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">static method GetMapEntries</span> (line <span class="line-number">67</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Gets an array of map entries from a map (associative array). A map entry  is any object that has a key and value field. An optional map entry class  name can be specified for constructing the entries, otherise the stdClass  is used.</p>
	<ul class="tags">
				<li><span class="field">return:</span> an array of map entries built from the key-value pairs in      the map</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">array</span>
		<span class="method-name">
			GetMapEntries
		</span>
					(<span class="var-type">array</span>&nbsp;<span class="var-name">$map</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$mapEntryClassName</span> = <span class="var-default">NULL</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$map</span><span class="var-description">: a map from key to value</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$mapEntryClassName</span><span class="var-description">: an optional class name to use when      constructing the map entries</span>			</li>
				</ul>
		
			
	</div>
<a name="methodIsMap" id="IsMap"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">static method IsMap</span> (line <span class="line-number">88</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Determines if an array is a map (associative array) vs. a flat,  numerically indexed array.</p>
	<ul class="tags">
				<li><span class="field">return:</span> true if the array is a map, false otherwise</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">bool</span>
		<span class="method-name">
			IsMap
		</span>
					(<span class="var-type">array</span>&nbsp;<span class="var-name">$array</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$array</span><span class="var-description">: the array to evaluate</span>			</li>
				</ul>
		
			
	</div>
<a name="methodMapToMethodParameters" id="MapToMethodParameters"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">static method MapToMethodParameters</span> (line <span class="line-number">100</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Converts a map (associative array) to a flat, numerically indexed array  of method parameters. The method is used to determine the order of the  parameters, and NULL values are using for missing parameters.</p>
	<ul class="tags">
				<li><span class="field">return:</span> the parameter values as a flat array</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">array</span>
		<span class="method-name">
			MapToMethodParameters
		</span>
					(<span class="var-type">array</span>&nbsp;<span class="var-name">$map</span>, <span class="var-type">ReflectionMethod</span>&nbsp;<span class="var-name">$method</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$map</span><span class="var-description">: the map of parameter names to values</span>			</li>
					<li>
				<span class="var-type">ReflectionMethod</span>
				<span class="var-name">$method</span><span class="var-description">: the method to use for the mapping</span>			</li>
				</ul>
		
			
	</div>

						
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.4</a>
	</p>
	</div></body>
</html>